home *** CD-ROM | disk | FTP | other *** search
- /* AppCodeComm.h - data struct for communicating between
- application and code resource. */
-
- typedef struct AppCodeComm
- {
- /* c strings except as noted */
- char *stdInFileName,
- *stdInFileNameP, /* pascal version of above */
- *stdOutFileName,
- *stdErrFileName,
- *callerName,
- *thisCodeName;
- short result;
- short version; /* currently 2 */
- /* Extension ("callback") functions - ALL OPTIONAL */
- short (*InDictionary_Ext)(char *tokenName);
- Handle (*GetFrontText_Ext)(Boolean getItAll);
- void (*GetNextMultiFile_Ext)(short *panePtr, short *indexPtr,
- short *vRefNumPtr, char *fileName, Boolean clearFlag);
- short (*OKStopAlert_Ext)(Ptr cstringPtr);
- void (*MemoryAlert_Ext)(void);
- short (*GetScreenHeight_Ext)(void);
- short (*GetScreenWidth_Ext)(void);
- void (*SetWatchCursor_Ext)(void);
- /* Concurrent exec, added for version 2 */
- void (*DoEventLoopOnce_Ext)(void);
- /* Access to scrap/clip of calling app */
- Handle (*GetAppClip_Ext)(void);
- /* Added for version 3 */
- long extendID; // Caller should set to 'VER3'
- short (*PutAppClip_Ext)(char *newClipStr);
- } AppCodeComm, *ACCPtr;
-
- extern AppCodeComm gacc;